package com.dong.demo;

public class MusicTest {
    public static void main(String[] args) {
        Music musics[] = new Music[5];
        musics[0] = new Music("晴天", "周杰伦", 3.0);
        musics[1] = new Music("雨天", "周杰伦", 3.5);
        musics[2] = new Music("认真的雪", "薛之谦", 3.0);
        musics[3] = new Music("大风吹", "王浩野", 3.0);
        musics[4] = new Music("来迟", "周杰", 3.0);
//         for (int i=0;i<musics.length;i++){
//             System.out.println(musics[i].toString());
//         }
        for (Music musiclist:musics
             ) {
            System.out.println(musiclist);

        }
    }
}
